/**
 * Created by HUANGFR2 on 8/19/2016.
 */

const controller = require('../controller/merchant.server.controller');

function fn(app){
    app.route('/merchant')
        .get(controller.findAll)
        .put(controller.updateMerchantStatus);

    app.route('/merchant/listBlackMerchant')
        .get(controller.findBlackMerchant);

    app.route('/merchant/low')
        .get(controller.findLowAll);

    app.route('/merchant/checkStatus/:mid')
        .get(controller.checkMerchantStatus)
}

module.exports = fn;